finding lcm and hcf of all numbers